#coding=utf-8
"""
===========================
Author:李灵娜
Time:2023/3/24 11:29
website:https://duoceshi.net
===========================
"""
import sys
sys.path.append('..')
import xlrd
from config.config import *
import os
class Read_Excel(object):
    def __init__(self,filename,sheet_Name):
        self.workbook = xlrd.open_workbook(filename)
        self.sheetName = self.workbook.sheet_by_name(sheet_Name)
    def get_excel_data(self,row,clo):
        value = self.sheetName.cell(row,clo).value
        return value
file = os.path.join(data_path,'data.xls')
excel = Read_Excel(file,'Sheet1')
url = excel.get_excel_data(1,0)
print(url)
